<meta charset="utf-8">
<?php
include("CommonModel.php");
class DetailinfosModel extends CommonModel{
	public function __construct($host,$name,$password,$dbname){
		parent::__construct($host,$name,$password,$dbname);
	}

	public function getDetailinfos($deid){
		$detailinfossql="select * from detailinfos where deid={$deid}";
		$result=@mysql_query($detailinfossql) or die("查询详细信息失败:".mysql_error()."<br/>");
		$row=mysql_fetch_object($result);
		return $row;
	}

	public function __destruct(){
		parent::__destruct();
	}
}

include("inc.php");
$liuzhaohong=new DetailinfosModel($dbhost,$dbuser,$dbpassword,$dbname);
/*$deid="115333530411";
$detailinfos=$liuzhaohong->getDetailinfos("$deid");
print_r($detailinfos);*/
?>